﻿using CommunityToolkit.Mvvm.ComponentModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;
using ZoneLine.Views;

namespace ZoneLine.Models
{
    public class StationResultBase : ObservableObject
    {
        /// <summary>
        /// ID
        /// </summary>
        [Column(IsIdentity = true)]
        public int Id { get; set; }

        private string _absScanCode;
        /// <summary>
        /// 减震器码
        /// </summary>
        [DgColumnAttr("减震器码", Index = 0)]
        public string AbsScanCode
        {
            get { return _absScanCode; }
            set { SetProperty(ref _absScanCode, value); }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DgColumnAttr("创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        private string _code;

        /// <summary>
        /// 二维码
        /// </summary>
        [DgColumnAttr("二维码", Index = 1)]
        public string Code
        {
            get { return _code; }
            set { SetProperty(ref _code, value); }
        }

    }
}
